//
//  EFSRefreshView.h
//  EFSMobile
//
//  Created by Chuan on 11/27/15.
//  Copyright © 2015 Elephants Financial Service. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, RefreshStatusType) {
    RefreshStatusTypeEmpty,
    RefreshStatusTypeFirstError,
    RefreshStatusTypeError,
    RefreshStatusTypeNoData
};

@interface EFSRefreshView : UIView

@property (nonatomic, copy) void (^refreshButtonTapped)(void); /**<刷新按钮的点击block*/
@property (nonatomic, strong) UILabel * hintLabel;
@property (nonatomic, strong) UIButton * refreshButton;

/**
 *  代码初始化RefreshView
 *
 *  @param refreshStatus 刷新的状态
 *
 *  @return refreshView
 */
- (instancetype)initWithRefreshStatus:(RefreshStatusType)refreshStatus;

/**
 *  配置在CELL中的RefreshView
 *
 *  @param refreshStatus 刷新的状态
 */
- (void)configRefreshStatus:(RefreshStatusType)refreshStatus;

- (void)configRefreshStatus:(RefreshStatusType)refreshStatus withHintString:(NSString *)hintString;

- (void)stopImageAnimating;

@end
